package 查找算法;

/**
 * @author kakayubei
 * @description
 * @date 2021/10/9 23:12
 */
public class BaseOrderSearch {
    public static int search1(int[] array, int key) {
        for (int i = 0, len = array.length; i < len; i++) {
            if (array[i] == key) {
                return i;
            }
        }
        return -1;
    }


}
